home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-17 | 534 b | 36 lines | [TEXT/CWIE] |
- // FileCloser.cp
-
- #ifndef FileCloser_h
- #include "FileCloser.h"
- #endif
- #ifndef FileReadingPath_h
- #include "FileReadingPath.h"
- #endif
- #ifndef __DEVICES__
- #include <Devices.h>
- #endif
-
- Task *FileCloser::operator()( FileReadingPath& thePath )
- {
- Assert( !Running() );
- Assert( thePath.IsOpen() );
-
- ioParam.ioVersNum = 0;
- ioParam.ioRefNum = thePath.RefNum();
- path = &thePath;
-
- return this;
- }
-
- void FileCloser::Launch()
- {
- Assert( !Running() );
-
- path->SetRefNum( 0 );
- PBCloseAsync( this );
- }
-
- void FileCloser::Kill()
- {
- }
-